package ClientB;

import java.math.BigDecimal;

public class Strawberry extends Fruit {

    public Strawberry(String prices) {
        super("草莓", "13", prices);
    }

    @Override
    public BigDecimal payCount() {
        return new BigDecimal(this.prices).multiply(new BigDecimal(num));
    }
}
